<?php
require_once 'config.php';

$name = $_GET["name"];
$content = $_GET["content"];

$color = $_GET["color"];
$time = date("Y-m-d H:i:s",time());

// 插入语句
$sql = "INSERT INTO `wish` (`id`, `name`, `content`,`time`,`color`,`password`) VALUES (NULL, '$name', '$content','$time','$color','$password');";
// 执行语句
$conn->query($sql);

//跳转到首页
header("Location:index.php");
